package com.faryangsh.repository;

import com.faryangsh.domain.mongodb.User;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by 杨志远 on 2017/8/21
 * email faryangsh@163.com.
 */
public interface UserRepository extends MongoRepository<User, Long> {
    User findByUsername(String username);
}
